<g2-card [title]="action" [total]="total" contentHeight="46px" [footer]="footer">
  <ng-template #action>
    <h4>总维修数 <i style="color: gray" nz-tooltip [nzTooltipTitle]="'一笔维修单计算一次'" nz-icon nzType="info-circle"
        nzTheme="outline"></i></h4>
  </ng-template>
  <g2-mini-area *ngIf="data.length !== 0" color="#975FE4" height="46" [data]="data"></g2-mini-area>
  <ng-template #footer>
    <div class="d-flex justify-content-between text-truncate">
      <trend flag="{{last === 0 ? '' : ((now > last) ? 'up' : 'down')}}">
        <span style="color: rgba(0, 0, 0, 0.45);">年同比</span>
        <span class="pl-sm">{{calcTb()}}</span>
      </trend>
      <div style="color: rgba(0, 0, 0, 0.45);">
        近30天
        <span style="color: black" class="pl-sm">{{month}}</span>
      </div>
    </div>
  </ng-template>
</g2-card>
